<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html >
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tests concept map</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/stile.css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.2.js">
	
</script>
<script type="text/javascript">
	function contentDisp() {
		$.ajax({
			url : "includetxt.jsp",
			success : function(data) {
				$("#concepts").html(data);
			}
		});
	}
</script> 

</head>
<body>
<%String user=request.getParameter("username"); %>
<h2><%int t=Integer.parseInt(request.getParameter("AssignmentId")); %>

<form action="insertPosiGVServlet" method="post">

 <div id="container"></label></div>
<textarea id="concepts" name="Concept" rows="10" cols="60" >
Không Được Vẽ Trong Hàng Này!!

</textarea>
Giảng Viên<input type="text"name="username" value="<%=user%>"></input>
Assignment<input type="text" name="AssignmentId" value="<%=t%>"></input>
	<input type="button" value="Xem" onClick="contentDisp();"
		style="color: blue; height: 36px; width: 94px">		
		<input type="submit" value="Lưu" onClick="contentDisp();"
		style="color: blue; height: 36px; width: 94px">							
</form>
</body>
<! goi ten lop js de ve>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.conceptmap.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/textareaLoader.js"></script>
<script type="text/javascript">
$(function() {
  $("#container").conceptMap({'tripleLoader': {func: textareaLoadEngine, args: {}}});
});
</script>
</html>